#ifndef TENCENTPOSTWIDGET_H
#define TENCENTPOSTWIDGET_H

#include <choqok/postwidget.h>

class TencentAccount;
class TencentPostWidget : public Choqok::UI::PostWidget
{
    Q_OBJECT
    public:
        explicit TencentPostWidget( TencentAccount* account, const Choqok::Post& post, QWidget* parent = 0 );
        virtual ~TencentPostWidget();
        virtual void initUi();
    protected Q_SLOTS:
        virtual void slotResendPost();
        virtual QString generateSign();

    private Q_SLOTS:
        void slotReply();
        void slotWrite();
        void slotReplyAll();
        void slotFavorite();
        void slotFavoriteCreated( Choqok::Account* account, Choqok::Post* post );
        void slotFavoriteRemoved( Choqok::Account* account, Choqok::Post* post );

    private:
        KPushButton* favoriteButton;
        KIcon unFavIcon;

};

#endif // TENCENTPOSTWIDGET_H
